const express = require('express');
const db = require('../uilit/mysql');

const router=express.Router();

// 获取岗位表数据，并将数据传给前端
router.post('/selectJob',(req,res)=>{
    const sqljob=`select * from job_category`;
    db.query(sqljob,(err,data)=>{
        if(err){
            console.log(err);
        }else{
            res.send({job:data});
        }
    })
});

module.exports=router;